/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package comportement;

import java.io.Serializable;
import java.util.Random;
import plateau.Joueur;

/**
 *
 * @author Arthur
 */
public class DefausserInventaireGros implements IncidentFacheux, Serializable {
    
    protected boolean all = true;

    public DefausserInventaireGros() {
    }

    public DefausserInventaireGros(boolean all) {
        this.all = all;
    }
    
    public void provoquer(Joueur j) {
        if( all )
            j.defausserInventaire(j.getInventaire().getGros());
        else
            j.defausserInventaireForce(j.getInventaire().getGros().get((new Random()).nextInt(j.getMain().size())));
    }
    
    public String getDescription() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    
}
